home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / sh.man < prev    next >
Encoding:
Text File  |  1989-01-26  |  24.0 KB  |  595 lines

  1.  
  2.  
  3.  
  4. SH                        User Commands                        SH
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      sh, for, case, if, while, ::, .., break, continue, cd, eval,
  10.      exec, exit, export, login, read, readonly, set, shift,
  11.      times, trap, umask, wait - command language
  12.  
  13. SSYYNNOOPPSSIISS
  14.      sshh [ --cceeiikknnrrssttuuvvxx ] [ arg ] ...
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _S_h is a command programming language that executes commands
  18.      read from a terminal or a file.  See iinnvvooccaattiioonn for the
  19.      meaning of arguments to the shell.
  20.  
  21.      CCoommmmaannddss..
  22.      A _s_i_m_p_l_e-_c_o_m_m_a_n_d is a sequence of non blank _w_o_r_d_s separated
  23.      by blanks (a blank is a ttaabb or a ssppaaccee).  The first word
  24.      specifies the name of the command to be executed.  Except as
  25.      specified below the remaining words are passed as arguments
  26.      to the invoked command.  The command name is passed as argu-
  27.      ment 0 (see _e_x_e_c_v_e(2)).  The _v_a_l_u_e of a simple-command is
  28.      its exit status if it terminates normally or 200+_s_t_a_t_u_s if
  29.      it terminates abnormally (see _s_i_g_v_e_c(2) for a list of status
  30.      values).
  31.  
  32.      A _p_i_p_e_l_i_n_e is a sequence of one or more _c_o_m_m_a_n_d_s separated
  33.      by ||.. The standard output of each command but the last is
  34.      connected by a _p_i_p_e(2) to the standard input of the next
  35.      command.  Each command is run as a separate process; the
  36.      shell waits for the last command to terminate.
  37.  
  38.      A _l_i_s_t is a sequence of one or more _p_i_p_e_l_i_n_e_s separated by
  39.      ;;, &&, &&&& or |||| and optionally terminated by ;; or &&.  ;; and &&
  40.      have equal precedence which is lower than that of &&&& and ||||,
  41.      &&&& and |||| also have equal precedence.  A semicolon causes
  42.      sequential execution; an ampersand causes the preceding
  43.      _p_i_p_e_l_i_n_e to be executed without waiting for it to finish.
  44.      The symbol &&&& (||||) causes the _l_i_s_t following to be executed
  45.      only if the preceding _p_i_p_e_l_i_n_e returns a zero (non zero)
  46.      value.  Newlines may appear in a _l_i_s_t, instead of semi-
  47.      colons, to delimit commands.
  48.  
  49.      A _c_o_m_m_a_n_d is either a simple-command or one of the follow-
  50.      ing.  The value returned by a command is that of the last
  51.      simple-command executed in the command.
  52.  
  53.      ffoorr _n_a_m_e [iinn _w_o_r_d ...] ddoo _l_i_s_t ddoonnee
  54.           Each time a ffoorr command is executed _n_a_m_e is set to the
  55.           next word in the ffoorr word list.  If iinn _w_o_r_d ...  is
  56.           omitted, iinn ""$$@@"" is assumed.  Execution ends when there
  57.           are no more words in the list.
  58.  
  59.      ccaassee _w_o_r_d iinn [_p_a_t_t_e_r_n [ || _p_a_t_t_e_r_n ] ... )) _l_i_s_t ;;;;] ... eessaacc
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 5, 1986                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SH                        User Commands                        SH
  71.  
  72.  
  73.  
  74.           A ccaassee command executes the _l_i_s_t associated with the
  75.           first pattern that matches _w_o_r_d. The form of the pat-
  76.           terns is the same as that used for file name genera-
  77.           tion.
  78.  
  79.      iiff _l_i_s_t tthheenn _l_i_s_t [eelliiff _l_i_s_t tthheenn _l_i_s_t] ... [eellssee _l_i_s_t] ffii
  80.           The _l_i_s_t following iiff is executed and if it returns
  81.           zero the _l_i_s_t following tthheenn is executed.  Otherwise,
  82.           the _l_i_s_t following eelliiff is executed and if its value is
  83.           zero the _l_i_s_t following tthheenn is executed.  Failing that
  84.           the eellssee _l_i_s_t is executed.
  85.  
  86.      wwhhiillee _l_i_s_t [ddoo _l_i_s_t] ddoonnee
  87.           A wwhhiillee command repeatedly executes the wwhhiillee _l_i_s_t and
  88.           if its value is zero executes the ddoo _l_i_s_t; otherwise
  89.           the loop terminates.  The value returned by a wwhhiillee
  90.           command is that of the last executed command in the ddoo
  91.           _l_i_s_t. uunnttiill may be used in place of wwhhiillee to negate the
  92.           loop termination test.
  93.  
  94.      (( _l_i_s_t ))
  95.           Execute _l_i_s_t in a subshell.
  96.  
  97.      {{ _l_i_s_t }}
  98.           _l_i_s_t is simply executed.
  99.  
  100.      The following words are only recognized as the first word of
  101.      a command and when not quoted.
  102.  
  103.           iiff tthheenn eellssee eelliiff ffii ccaassee iinn eessaacc ffoorr wwhhiillee uunnttiill ddoo
  104.           ddoonnee {{ }}
  105.  
  106.      CCoommmmaanndd ssuubbssttiittuuttiioonn..
  107.      The standard output from a command enclosed in a pair of
  108.      back quotes (````) may be used as part or all of a word;
  109.      trailing newlines are removed.
  110.  
  111.      PPaarraammeetteerr ssuubbssttiittuuttiioonn..
  112.      The character $$ is used to introduce substitutable parame-
  113.      ters.  Positional parameters may be assigned values by sseett.
  114.      Variables may be set by writing
  115.  
  116.           _n_a_m_e==_v_a_l_u_e [ _n_a_m_e==_v_a_l_u_e ] ...
  117.  
  118.      ${{_p_a_r_a_m_e_t_e_r}}
  119.           A _p_a_r_a_m_e_t_e_r is a sequence of letters, digits or under-
  120.           scores (a _n_a_m_e), a digit, or any of the characters ** @@
  121.           ## ?? -- $$ !!..  The value, if any, of the parameter is sub-
  122.           stituted.  The braces are required only when _p_a_r_a_m_e_t_e_r
  123.           is followed by a letter, digit, or underscore that is
  124.           not to be interpreted as part of its name.  If _p_a_r_a_m_e_-
  125.           _t_e_r is a digit, it is a positional parameter.  If
  126.  
  127.  
  128.  
  129. Sprite v1.0                May 5, 1986                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SH                        User Commands                        SH
  137.  
  138.  
  139.  
  140.           _p_a_r_a_m_e_t_e_r is ** or @@ then all the positional parameters,
  141.           starting with $$11, are substituted separated by spaces.
  142.           $$00 is set from argument zero when the shell is invoked.
  143.  
  144.      ${{_p_a_r_a_m_e_t_e_r-_w_o_r_d}}
  145.           If _p_a_r_a_m_e_t_e_r is set, substitute its value; otherwise
  146.           substitute _w_o_r_d.
  147.  
  148.      ${{_p_a_r_a_m_e_t_e_r=_w_o_r_d}}
  149.           If _p_a_r_a_m_e_t_e_r is not set, set it to _w_o_r_d; the value of
  150.           the parameter is then substituted.  Positional parame-
  151.           ters may not be assigned to in this way.
  152.  
  153.      ${{_p_a_r_a_m_e_t_e_r?_w_o_r_d}}
  154.           If _p_a_r_a_m_e_t_e_r is set, substitute its value; otherwise,
  155.           print _w_o_r_d and exit from the shell.  If _w_o_r_d is omit-
  156.           ted, a standard message is printed.
  157.  
  158.      ${{_p_a_r_a_m_e_t_e_r+_w_o_r_d}}
  159.           If _p_a_r_a_m_e_t_e_r is set, substitute _w_o_r_d; otherwise substi-
  160.           tute nothing.
  161.  
  162.      In the above _w_o_r_d is not evaluated unless it is to be used
  163.      as the substituted string.  (So that, for example, echo
  164.      ${d-'pwd'} will only execute _p_w_d if _d is unset.)
  165.  
  166.      The following _p_a_r_a_m_e_t_e_r_s are automatically set by the shell.
  167.  
  168.           ##    The number of positional parameters in decimal.
  169.           --    Options supplied to the shell on invocation or by
  170.                sseett.
  171.           ??    The value returned by the last executed command in
  172.                decimal.
  173.           $$    The process number of this shell.
  174.           !!    The process number of the last background command
  175.                invoked.
  176.  
  177.      The following _p_a_r_a_m_e_t_e_r_s are used but not set by the shell.
  178.  
  179.           HHOOMMEE The default argument (home directory) for the ccdd
  180.                command.
  181.           PPAATTHH The search path for commands (see eexxeeccuuttiioonn).
  182.           MMAAIILL If this variable is set to the name of a mail
  183.                file, the shell informs the user of the arrival of
  184.                mail in the specified file.
  185.           PPSS11  Primary prompt string, by default '$ '.
  186.           PPSS22  Secondary prompt string, by default '> '.
  187.           IIFFSS  Internal field separators, normally ssppaaccee, ttaabb,
  188.                and nneewwlliinnee.  IIFFSS is ignored if _s_h is running as
  189.                root or if the effective user id differs from the
  190.                real user id.
  191.  
  192.  
  193.  
  194.  
  195. Sprite v1.0                May 5, 1986                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. SH                        User Commands                        SH
  203.  
  204.  
  205.  
  206.      BBllaannkk iinntteerrpprreettaattiioonn..
  207.      After parameter and command substitution, any results of
  208.      substitution are scanned for internal field separator char-
  209.      acters (those found in $$IIFFSS) and split into distinct argu-
  210.      ments where such characters are found.  Explicit null argu-
  211.      ments ("" or '') are retained.  Implicit null arguments
  212.      (those resulting from _p_a_r_a_m_e_t_e_r_s that have no values) are
  213.      removed.
  214.  
  215.      FFiillee nnaammee ggeenneerraattiioonn..
  216.      Following substitution, each command word is scanned for the
  217.      characters **, ?? and [[.. If one of these characters appears,
  218.      the word is regarded as a pattern.  The word is replaced
  219.      with alphabetically sorted file names that match the pat-
  220.      tern.  If no file name is found that matches the pattern,
  221.      the word is left unchanged.  The character .. at the start of
  222.      a file name or immediately following a //, and the character
  223.      //, must be matched explicitly.
  224.  
  225.      **    Matches any string, including the null string.
  226.      ??    Matches any single character.
  227.      [[......]]
  228.           Matches any one of the characters enclosed.  A pair of
  229.           characters separated by -- matches any character lexi-
  230.           cally between the pair.
  231.  
  232.      QQuuoottiinngg..
  233.      The following characters have a special meaning to the shell
  234.      and cause termination of a word unless quoted.
  235.  
  236.           ;;   &&   ((   ))   ||   <<   >>   nneewwlliinnee   ssppaaccee   ttaabb
  237.  
  238.      A character may be _q_u_o_t_e_d by preceding it with a \\..  \\nneeww--
  239.      lliinnee is ignored.  All characters enclosed between a pair of
  240.      quote marks (''''), except a single quote, are quoted.  Inside
  241.      double quotes ("""") parameter and command substitution occurs
  242.      and \\ quotes the characters \\ '' "" and $$.
  243.  
  244.      ""$$**"" is equivalent to ""$$11 $$22 ......"" whereas
  245.      ""$$@@"" is equivalent to ""$$11"" ""$$22"" ...... ..
  246.  
  247.      PPrroommppttiinngg..
  248.      When used interactively, the shell prompts with the value of
  249.      PS1 before reading a command.  If at any time a newline is
  250.      typed and further input is needed to complete a command, the
  251.      secondary prompt ($$PPSS22) is issued.
  252.  
  253.      IInnppuutt oouuttppuutt..
  254.      Before a command is executed its input and output may be
  255.      redirected using a special notation interpreted by the
  256.      shell.  The following may appear anywhere in a simple-
  257.      command or may precede or follow a _c_o_m_m_a_n_d and are not
  258.  
  259.  
  260.  
  261. Sprite v1.0                May 5, 1986                          4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. SH                        User Commands                        SH
  269.  
  270.  
  271.  
  272.      passed on to the invoked command.  Substitution occurs
  273.      before _w_o_r_d or _d_i_g_i_t is used.
  274.  
  275.      <_w_o_r_d
  276.           Use file _w_o_r_d as standard input (file descriptor 0).
  277.  
  278.      >_w_o_r_d
  279.           Use file _w_o_r_d as standard output (file descriptor 1).
  280.           If the file does not exist, it is created; otherwise it
  281.           is truncated to zero length.
  282.  
  283.      >>_w_o_r_d
  284.           Use file _w_o_r_d as standard output.  If the file exists,
  285.           output is appended (by seeking to the end); otherwise
  286.           the file is created.
  287.  
  288.      <<_w_o_r_d
  289.           The shell input is read up to a line the same as _w_o_r_d,
  290.           or end of file.  The resulting document becomes the
  291.           standard input.  If any character of _w_o_r_d is quoted, no
  292.           interpretation is placed upon the characters of the
  293.           document; otherwise, parameter and command substitution
  294.           occurs, \\nneewwlliinnee is ignored, and \\ is used to quote the
  295.           characters \\ $$ '' and the first character of _w_o_r_d.
  296.  
  297.      <&_d_i_g_i_t
  298.           The standard input is duplicated from file descriptor
  299.           _d_i_g_i_t; see _d_u_p(2).  Similarly for the standard output
  300.           using >.
  301.  
  302.      <&-  The standard input is closed.  Similarly for the stan-
  303.           dard output using >.
  304.  
  305.      If one of the above is preceded by a digit, the file
  306.      descriptor created is that specified by the digit (instead
  307.      of the default 0 or 1).  For example,
  308.  
  309.           ... 2>&1
  310.  
  311.      creates file descriptor 2 to be a duplicate of file descrip-
  312.      tor 1.
  313.  
  314.      If a command is followed by && then the default standard
  315.      input for the command is the empty file (/dev/null).  Other-
  316.      wise, the environment for the execution of a command con-
  317.      tains the file descriptors of the invoking shell as modified
  318.      by input output specifications.
  319.  
  320.      EEnnvviirroonnmmeenntt..
  321.      The environment is a list of name-value pairs that is passed
  322.      to an executed program in the same way as a normal argument
  323.      list; see _e_x_e_c_v_e(2) and _e_n_v_i_r_o_n(7).  The shell interacts
  324.  
  325.  
  326.  
  327. Sprite v1.0                May 5, 1986                          5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. SH                        User Commands                        SH
  335.  
  336.  
  337.  
  338.      with the environment in several ways.  On invocation, the
  339.      shell scans the environment and creates a _p_a_r_a_m_e_t_e_r for each
  340.      name found, giving it the corresponding value.  Executed
  341.      commands inherit the same environment.  If the user modifies
  342.      the values of these _p_a_r_a_m_e_t_e_r_s or creates new ones, none of
  343.      these affects the environment unless the eexxppoorrtt command is
  344.      used to bind the shell's _p_a_r_a_m_e_t_e_r to the environment.  The
  345.      environment seen by any executed command is thus composed of
  346.      any unmodified name-value pairs originally inherited by the
  347.      shell, plus any modifications or additions, all of which
  348.      must be noted in eexxppoorrtt commands.
  349.  
  350.      The environment for any _s_i_m_p_l_e-_c_o_m_m_a_n_d may be augmented by
  351.      prefixing it with one or more assignments to _p_a_r_a_m_e_t_e_r_s.
  352.      Thus these two lines are equivalent
  353.  
  354.           TERM=450 cmd args
  355.           (export TERM; TERM=450; cmd args)
  356.  
  357.      If the --kk flag is set, _a_l_l keyword arguments are placed in
  358.      the environment, even if the occur after the command name.
  359.      The following prints 'a=b c' and 'c':
  360.      echo a=b c
  361.      set -k
  362.      echo a=b c
  363.  
  364.      SSiiggnnaallss..
  365.      The INTERRUPT and QUIT signals for an invoked command are
  366.      ignored if the command is followed by &&; otherwise signals
  367.      have the values inherited by the shell from its parent.
  368.      (But see also ttrraapp..)
  369.  
  370.      EExxeeccuuttiioonn..
  371.      Each time a command is executed the above substitutions are
  372.      carried out.  Except for the 'special commands' listed below
  373.      a new process is created and an attempt is made to execute
  374.      the command via an _e_x_e_c_v_e(2).
  375.  
  376.      The shell parameter $$PPAATTHH defines the search path for the
  377.      directory containing the command.  Each alternative direc-
  378.      tory name is separated by a colon (::).  The default path is
  379.      :://bbiinn:://uussrr//bbiinn.  If the command name contains a /, the
  380.      search path is not used.  Otherwise, each directory in the
  381.      path is searched for an executable file.  If the file has
  382.      execute permission but is not an _a._o_u_t file, it is assumed
  383.      to be a file containing shell commands.  A subshell (i.e., a
  384.      separate process) is spawned to read it.  A parenthesized
  385.      command is also executed in a subshell.
  386.  
  387.      SSppeecciiaall ccoommmmaannddss..
  388.      The following commands are executed in the shell process and
  389.      except where specified no input output redirection is
  390.  
  391.  
  392.  
  393. Sprite v1.0                May 5, 1986                          6
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. SH                        User Commands                        SH
  401.  
  402.  
  403.  
  404.      permitted for such commands.
  405.  
  406.      ##    For non-interactive shells, everything following the ##
  407.           is treated as a comment, i.e. the rest of the line is
  408.           ignored.  For interactive shells, the ## has no special
  409.           effect.
  410.  
  411.      ::    No effect; the command does nothing.
  412.      .. _f_i_l_e
  413.           Read and execute commands from _f_i_l_e and return.  The
  414.           search path $$PPAATTHH is used to find the directory con-
  415.           taining _f_i_l_e.
  416.      bbrreeaakk [_n]
  417.           Exit from the enclosing ffoorr or wwhhiillee loop, if any.  If
  418.           _n is specified, break _n levels.
  419.      ccoonnttiinnuuee [_n]
  420.           Resume the next iteration of the enclosing ffoorr or wwhhiillee
  421.           loop.  If _n is specified, resume at the _n-th enclosing
  422.           loop.
  423.      ccdd [_a_r_g]
  424.           Change the current directory to _a_r_g. The shell parame-
  425.           ter $$HHOOMMEE is the default _a_r_g.
  426.      eevvaall [_a_r_g ...]
  427.           The arguments are read as input to the shell and the
  428.           resulting command(s) executed.
  429.      eexxeecc [_a_r_g ...]
  430.           The command specified by the arguments is executed in
  431.           place of this shell without creating a new process.
  432.           Input output arguments may appear and if no other argu-
  433.           ments are given cause the shell input output to be
  434.           modified.
  435.      eexxiitt [_n]
  436.           Causes a non interactive shell to exit with the exit
  437.           status specified by _n. If _n is omitted, the exit status
  438.           is that of the last command executed.  (An end of file
  439.           will also exit from the shell.)
  440.      eexxppoorrtt [_n_a_m_e ...]
  441.           The given names are marked for automatic export to the
  442.           _e_n_v_i_r_o_n_m_e_n_t of subsequently-executed commands.  If no
  443.           arguments are given, a list of exportable names is
  444.           printed.
  445.      llooggiinn [_a_r_g ...]
  446.           Equivalent to 'exec login arg ...'.
  447.      rreeaadd _n_a_m_e ...
  448.           One line is read from the standard input; successive
  449.           words of the input are assigned to the variables _n_a_m_e
  450.           in order, with leftover words to the last variable.
  451.           The return code is 0 unless the end-of-file is encoun-
  452.           tered.
  453.      rreeaaddoonnllyy [_n_a_m_e ...]
  454.           The given names are marked readonly and the values of
  455.           the these names may not be changed by subsequent
  456.  
  457.  
  458.  
  459. Sprite v1.0                May 5, 1986                          7
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. SH                        User Commands                        SH
  467.  
  468.  
  469.  
  470.           assignment.  If no arguments are given, a list of all
  471.           readonly names is printed.
  472.      sseett [--eekknnppttuuvvxx [_a_r_g ...]]
  473.           --ee If non interactive, exit immediately if a command
  474.              fails.
  475.           --kk All keyword arguments are placed in the environment
  476.              for a command, not just those that precede the com-
  477.              mand name.
  478.           --nn Read commands but do not execute them.
  479.           --tt Exit after reading and executing one command.
  480.           --uu Treat unset variables as an error when substituting.
  481.           --vv Print shell input lines as they are read.
  482.           --xx Print commands and their arguments as they are exe-
  483.              cuted.
  484.           --  Turn off the --xx and --vv options.
  485.  
  486.           These flags can also be used upon invocation of the
  487.           shell.  The current set of flags may be found in $$--.
  488.  
  489.           Remaining arguments are positional parameters and are
  490.           assigned, in order, to $$11, $$22, etc.  If no arguments
  491.           are given, the values of all names are printed.
  492.  
  493.      sshhiifftt
  494.           The positional parameters from $$22...  are renamed $$11...
  495.  
  496.      ttiimmeess
  497.           Print the accumulated user and system times for
  498.           processes run from the shell.
  499.  
  500.      ttrraapp [_a_r_g] [_n] ...
  501.           _A_r_g is a command to be read and executed when the shell
  502.           receives signal(s) _n. (Note that _a_r_g is scanned once
  503.           when the trap is set and once when the trap is taken.)
  504.           Trap commands are executed in order of signal number.
  505.           If _a_r_g is absent, all trap(s) _n are reset to their ori-
  506.           ginal values.  If _a_r_g is the null string, this signal
  507.           is ignored by the shell and by invoked commands.  If _n
  508.           is 0, the command _a_r_g is executed on exit from the
  509.           shell, otherwise upon receipt of signal _n as numbered
  510.           in _s_i_g_v_e_c(2).  _T_r_a_p with no arguments prints a list of
  511.           commands associated with each signal number.
  512.  
  513.      uummaasskk [ _n_n_n ]
  514.           The user file creation mask is set to the octal value
  515.           _n_n_n (see _u_m_a_s_k(2)).  If _n_n_n is omitted, the current
  516.           value of the mask is printed.
  517.  
  518.      wwaaiitt [_n]
  519.           Wait for the specified process and report its termina-
  520.           tion status.  If _n is not given, all currently active
  521.           child processes are waited for.  The return code from
  522.  
  523.  
  524.  
  525. Sprite v1.0                May 5, 1986                          8
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. SH                        User Commands                        SH
  533.  
  534.  
  535.  
  536.           this command is that of the process waited for.
  537.  
  538.      IInnvvooccaattiioonn..
  539.      If the first character of argument zero is --, commands are
  540.      read from $$HHOOMMEE//..pprrooffiillee, if such a file exists.  Commands
  541.      are then read as described below.  The following flags are
  542.      interpreted by the shell when it is invoked.
  543.      --cc _s_t_r_i_n_g  If the --cc flag is present, commands are read from
  544.                 _s_t_r_i_n_g.
  545.      --ss         If the --ss flag is present or if no arguments
  546.                 remain then commands are read from the standard
  547.                 input.  Shell output is written to file descrip-
  548.                 tor 2.
  549.      --ii         If the --ii flag is present or if the shell input
  550.                 and output are attached to a terminal (as told by
  551.                 _g_t_t_y) then this shell is _i_n_t_e_r_a_c_t_i_v_e. In this
  552.                 case the terminate signal SIGTERM (see _s_i_g_v_e_c(2))
  553.                 is ignored (so that 'kill 0' does not kill an
  554.                 interactive shell) and the interrupt signal SIG-
  555.                 INT is caught and ignored (so that wwaaiitt is inter-
  556.                 ruptible).  In all cases SIGQUIT is ignored by
  557.                 the shell.
  558.  
  559.      The remaining flags and arguments are described under the
  560.      sseett command.
  561.  
  562. FFIILLEESS
  563.      $HOME/..profile
  564.      /tmp/sh*
  565.      /dev/null
  566.  
  567. SSEEEE AALLSSOO
  568.      csh(1), test(1), execve(2), environ(7)
  569.  
  570. DDIIAAGGNNOOSSTTIICCSS
  571.      Errors detected by the shell, such as syntax errors cause
  572.      the shell to return a non zero exit status.  If the shell is
  573.      being used non interactively then execution of the shell
  574.      file is abandoned.  Otherwise, the shell returns the exit
  575.      status of the last command executed (see also eexxiitt).
  576.  
  577. BBUUGGSS
  578.      If << is used to provide standard input to an asynchronous
  579.      process invoked by &, the shell gets mixed up about naming
  580.      the input document.  A garbage file /tmp/sh* is created, and
  581.      the shell complains about not being able to find the file by
  582.      another name.
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591. Sprite v1.0                May 5, 1986                          9
  592.  
  593.  
  594.  
  595.